package com.cucn.msmservice.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author KouChaoJie
 * @since: 2021/10/17 14:36
 */
@Component
public class ConstantMsmUtils implements InitializingBean {
    @Value("${tencent.keyid}")
    private String keyId;
    @Value("${tencent.keysecret}")
    private String keySecret;
    @Value("${tencent.SdkAppId}")
    private String appid;

    public static String ACCESS_KEY_ID;

    public static String ACCESS_KEY_SECRET;

    public static String APP_ID;

    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_ID = keyId;
        ACCESS_KEY_SECRET = keySecret;
        APP_ID = appid;
    }
}
